

public class HardWork {
    public static void main(String[] args) {
        int n = 10;
        int k = 20;
        int main = n < k ? n : k;
    }
    public static void main21(String[] args) {
        int a = 10;
        int b = 20;
        int max = a > b ? a : b;
        System.out.println(max);
    }
    public static void main20(String[] args) {
        int a = 2;
        System.out.println(a << 1);
    }
    public static void main19(String[] args) {
        int a = 3;
        int b = 5;
        System.out.println(a ^ b);
    }
    public static void main18(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a & b);
        System.out.println(a | b);
        System.out.println(a ^ b);
    }
    public static void main17(String[] args) {
        int n = 100;
        int k = 10;
        System.out.println(n < k && k / 0 == 0);
        System.out.println(n > k || k / 0 == 0);
    }
    public static void main16(String[] args) {
        int n = 10;
        System.out.println(!(n > 1));
        System.out.println(!(n == 1));
    }
    public static void main15(String[] args) {
        int n = 1;
        int k = 2;
        System.out.println(n > 10 || k > 10);
        System.out.println(n < 10 || k < 10);
        System.out.println(n > 10 || k < 10);
        System.out.println(n == 10 || k > 10);
    }
    public static void main14(String[] args) {
        int a = 10;
        int b = 100;
        System.out.println(a < 100 && b > 100);
        System.out.println(a < 100 && b == 100);
        System.out.println(a < 10 && b >= 10);
        System.out.println(a == 10 && b > 10);
    }
    public static void main13(String[] args) {
        int n = 10;
        int k = 11;
        System.out.println(n == k);
        System.out.println(n != k);
        System.out.println(n > k);
        System.out.println(n < k);
        System.out.println(n >= k);
        System.out.println(n <= k);
    }
    public static void main12(String[] args) {
        int k = 100;
        int n = 100;
        System.out.println(k--);
        System.out.println(--n);
    }
    public static void main11(String[] args) {
        int n = 100;
        int k = 10;
        --k;
        n--;
        System.out.println("n: " +n);
        System.out.println("k: " +k);
    }
    public static void main10(String[] args) {
        int sum = 0;
        int i = 0;
        while(i<100) {
            if (i % 15 == 0) {
                //3的倍数he5de倍数
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main9(String[] args) {
        int sum = 1;
        int i = 1;
        int n = 5;
        int ret = 1;
        while(n > 0){
            while(i <= n){
                sum *= i;
                i++;
            }
            n--;
            ret += sum;
        }
        System.out.println(sum);
    }
    public static void main8(String[] args) {
        //j计算1~100的和、奇数的和、偶数的和
        int sum = 0;
        int add = 0;
        int over = 0;
        int i = 0;
        while(i < 100){
            sum += i;
            if (i % 2 == 0){
                //偶数
                add += i;
            }
            else{
                //奇数
                over += i;
            }
            i++;
        }
        System.out.println(add);//偶数和
        System.out.println(over);
        System.out.println(sum);//100的和
    }
    public static void main7(String[] args) {
        double a = 12.5;
        int b = 1;
        b += a;
        System.out.println(b);
    }
    public static void main6(String[] args) {
        int a = 100;
        //a = a + 100;
        a += 100;
        System.out.println(a);
    }
    public static void main5(String[] args) {
        int a = 100;
        int b = 1000;
        int c = 10000;
        b += a;//相当于 b = b + a;
        c -= b;//相当于 c = c - b;
        System.out.println(b);
        System.out.println(c);
    }
    public static void main4(String[] args) {
        System.out.println(12.5 % 12.5);
        System.out.println(12.2 % 10.5);
    }
    public static void main3(String[] args) {
        for (int i = 0; i < 4; i++) {
            //System.out.print("* ");
            for (int j = 0; j < 4; j++) {
                System.out.print("* ");
            }
            //System.out.println('\n');
        }
    }
    public static void main2(String[] args) {
        System.out.println(5%2);
        System.out.println(-5%2);
        System.out.println(5%-2);
        System.out.println(-5%-2);
    }
    public static void main1(String[] args) {
        System.out.println(6/4);
        System.out.println(6.0/4);
        System.out.println(6/4.0);
        System.out.println((float)6/4);
        System.out.println(6/(float)4);
        System.out.println((float)(5/2));
    }
}
